<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGithubsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
//        Schema::create('githubs', function (Blueprint $table) {
//            $table->increments('id');
//            $table->integer('user_id')->default(0);
//            $table->integer('github_id');
//            $table->string('nickname');
//            $table->string('name')->nullable();
//            $table->string('email');
//            $table->string('avatar');
//            $table->tinyInteger('is_avtive')->default(0)->comment('0-未关联账户，1-已关联');
//            $table->timestamps();
//        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
//        Schema::dropIfExists('githubs');
    }
}
